<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>xilasu: RSA Client APIs</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">xilasu
   </div>
   <div id="projectbrief">Vitis Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Overview</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="globals.html"><span>APIs</span></a></li>
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;"
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__xasu__rsa__client__apis.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">RSA Client APIs</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gaa85dcefff8e7e30465bf6a5e5d20e7fd"><td class="memItemLeft" align="right" valign="top">s32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xasu__rsa__client__apis.html#gaa85dcefff8e7e30465bf6a5e5d20e7fd">XAsu_RsaEnc</a> (<a class="el" href="struct_x_asu___client_params.html">XAsu_ClientParams</a> *ClientParamPtr, <a class="el" href="struct_x_asu___rsa_params.html">XAsu_RsaParams</a> *RsaClientParamPtr)</td></tr>
<tr class="memdesc:gaa85dcefff8e7e30465bf6a5e5d20e7fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function sends a command to ASUFW to perform RSA encryption on the provided data by using specified public key.  <a href="#gaa85dcefff8e7e30465bf6a5e5d20e7fd">More...</a><br/></td></tr>
<tr class="separator:gaa85dcefff8e7e30465bf6a5e5d20e7fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8d99c3659893b5b77683b6bc3ee3abf8"><td class="memItemLeft" align="right" valign="top">s32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xasu__rsa__client__apis.html#ga8d99c3659893b5b77683b6bc3ee3abf8">XAsu_RsaDec</a> (<a class="el" href="struct_x_asu___client_params.html">XAsu_ClientParams</a> *ClientParamPtr, <a class="el" href="struct_x_asu___rsa_params.html">XAsu_RsaParams</a> *RsaClientParamPtr)</td></tr>
<tr class="memdesc:ga8d99c3659893b5b77683b6bc3ee3abf8"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function sends command to ASUFW to perform RSA decryption on the provided data by using specified private key.  <a href="#ga8d99c3659893b5b77683b6bc3ee3abf8">More...</a><br/></td></tr>
<tr class="separator:ga8d99c3659893b5b77683b6bc3ee3abf8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa738d6a05293f677e9fdd1fd137cc912"><td class="memItemLeft" align="right" valign="top">s32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xasu__rsa__client__apis.html#gaa738d6a05293f677e9fdd1fd137cc912">XAsu_RsaCrtDec</a> (<a class="el" href="struct_x_asu___client_params.html">XAsu_ClientParams</a> *ClientParamPtr, <a class="el" href="struct_x_asu___rsa_params.html">XAsu_RsaParams</a> *RsaClientParamPtr)</td></tr>
<tr class="memdesc:gaa738d6a05293f677e9fdd1fd137cc912"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function sends command to ASUFW to perform RSA decryption using CRT algorithm for the provided message by using specified private key.  <a href="#gaa738d6a05293f677e9fdd1fd137cc912">More...</a><br/></td></tr>
<tr class="separator:gaa738d6a05293f677e9fdd1fd137cc912"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga32fd59ce2f1c0da67ca9217a224a4626"><td class="memItemLeft" align="right" valign="top">s32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xasu__rsa__client__apis.html#ga32fd59ce2f1c0da67ca9217a224a4626">XAsu_RsaOaepEnc</a> (<a class="el" href="struct_x_asu___client_params.html">XAsu_ClientParams</a> *ClientParamPtr, <a class="el" href="struct_x_asu___rsa_oaep_padding_params.html">XAsu_RsaOaepPaddingParams</a> *RsaClientParamPtr)</td></tr>
<tr class="memdesc:ga32fd59ce2f1c0da67ca9217a224a4626"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function sends command to ASUFW to perform encoding using RSA OAEP padding algorithm by using the specified RSA key.  <a href="#ga32fd59ce2f1c0da67ca9217a224a4626">More...</a><br/></td></tr>
<tr class="separator:ga32fd59ce2f1c0da67ca9217a224a4626"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf459c9f8ebb4d33247bbd8b6ab591809"><td class="memItemLeft" align="right" valign="top">s32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xasu__rsa__client__apis.html#gaf459c9f8ebb4d33247bbd8b6ab591809">XAsu_RsaOaepDec</a> (<a class="el" href="struct_x_asu___client_params.html">XAsu_ClientParams</a> *ClientParamPtr, <a class="el" href="struct_x_asu___rsa_oaep_padding_params.html">XAsu_RsaOaepPaddingParams</a> *RsaClientParamPtr)</td></tr>
<tr class="memdesc:gaf459c9f8ebb4d33247bbd8b6ab591809"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function sends a command to ASUFW to perform decoding using RSA OAEP padding algorithm of the provided message by using the specified key.  <a href="#gaf459c9f8ebb4d33247bbd8b6ab591809">More...</a><br/></td></tr>
<tr class="separator:gaf459c9f8ebb4d33247bbd8b6ab591809"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaceff65cb28ac22b56121a047dbb53aa9"><td class="memItemLeft" align="right" valign="top">s32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xasu__rsa__client__apis.html#gaceff65cb28ac22b56121a047dbb53aa9">XAsu_RsaPssSignGen</a> (<a class="el" href="struct_x_asu___client_params.html">XAsu_ClientParams</a> *ClientParamPtr, <a class="el" href="struct_x_asu___rsa_padding_params.html">XAsu_RsaPaddingParams</a> *RsaClientParamPtr)</td></tr>
<tr class="memdesc:gaceff65cb28ac22b56121a047dbb53aa9"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function sends a command to ASUFW to generate signature using RSA PSS padding on provided message by using the specified key.  <a href="#gaceff65cb28ac22b56121a047dbb53aa9">More...</a><br/></td></tr>
<tr class="separator:gaceff65cb28ac22b56121a047dbb53aa9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3a33eba68b96c49e0dcb8ca6abfd7b89"><td class="memItemLeft" align="right" valign="top">s32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xasu__rsa__client__apis.html#ga3a33eba68b96c49e0dcb8ca6abfd7b89">XAsu_RsaPssSignVer</a> (<a class="el" href="struct_x_asu___client_params.html">XAsu_ClientParams</a> *ClientParamPtr, <a class="el" href="struct_x_asu___rsa_padding_params.html">XAsu_RsaPaddingParams</a> *RsaClientParamPtr)</td></tr>
<tr class="memdesc:ga3a33eba68b96c49e0dcb8ca6abfd7b89"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function sends request to ASUFW to verify the specified signature by using RSA PSS padding by using the provided key.  <a href="#ga3a33eba68b96c49e0dcb8ca6abfd7b89">More...</a><br/></td></tr>
<tr class="separator:ga3a33eba68b96c49e0dcb8ca6abfd7b89"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga12f65d36404feb30ce5b7f801e51eb81"><td class="memItemLeft" align="right" valign="top">s32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xasu__rsa__client__apis.html#ga12f65d36404feb30ce5b7f801e51eb81">XAsu_RsaKat</a> (<a class="el" href="struct_x_asu___client_params.html">XAsu_ClientParams</a> *ClientParamPtr)</td></tr>
<tr class="memdesc:ga12f65d36404feb30ce5b7f801e51eb81"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function sends a command to ASUFW to perform RSA Known Answer Tests (KAT's).  <a href="#ga12f65d36404feb30ce5b7f801e51eb81">More...</a><br/></td></tr>
<tr class="separator:ga12f65d36404feb30ce5b7f801e51eb81"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="gaa738d6a05293f677e9fdd1fd137cc912"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">s32 XAsu_RsaCrtDec </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_asu___client_params.html">XAsu_ClientParams</a> *&#160;</td>
          <td class="paramname"><em>ClientParamPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_x_asu___rsa_params.html">XAsu_RsaParams</a> *&#160;</td>
          <td class="paramname"><em>RsaClientParamPtr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function sends command to ASUFW to perform RSA decryption using CRT algorithm for the provided message by using specified private key. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ClientParamPtr</td><td>Pointer to the <a class="el" href="struct_x_asu___client_params.html" title="This structure contains client parameters information. ">XAsu_ClientParams</a> structure which holds the client input parameters. </td></tr>
    <tr><td class="paramname">RsaClientParamPtr</td><td>Pointer to <a class="el" href="struct_x_asu___rsa_params.html" title="This structure contains RSA params info. ">XAsu_RsaParams</a> structure which holds the parameters of RSA input arguments.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>XST_SUCCESS, if IPI request to ASU is sent successfully.</li>
<li>XASU_INVALID_ARGUMENT, if any argument is invalid.</li>
<li>XASU_QUEUE_FULL, if Queue buffer is full.</li>
<li>XST_FAILURE, if sending IPI request to ASU fails. </li>
</ul>
</dd></dl>
<p>Validate input parameters.</p>
<p>Validatations of inputs.</p>
<p>Generate unique ID and register the callback.</p>
<p>Create command header.</p>
<p>Update request buffer and send an IPI request to ASU. </p>

<p>References <a class="el" href="struct_x_asu___rsa_params.html#ae603b7d80dd7b6135fb3b0bef96301c2">XAsu_RsaParams::InputDataAddr</a>, <a class="el" href="struct_x_asu___rsa_params.html#a5e18a0a1b467d66aa7570db8a1dadaef">XAsu_RsaParams::KeyCompAddr</a>, <a class="el" href="struct_x_asu___rsa_params.html#a5274ca6616c0d7e21c40dc4a168370d7">XAsu_RsaParams::KeySize</a>, <a class="el" href="struct_x_asu___rsa_params.html#a1d604912459e3e38cad1573f180997d7">XAsu_RsaParams::Len</a>, <a class="el" href="struct_x_asu___rsa_params.html#a4d1e5191bc0b3870ab1dc8a58ebc539f">XAsu_RsaParams::OutputDataAddr</a>, <a class="el" href="group__xasu__client__info.html#gad0de9c14ad7810516d9f71d5b18c44c1">XAsu_CreateHeader()</a>, <a class="el" href="group__xasu__client__info.html#gga06fc87d81c62e9abb8790b6e5713c55ba21f6a079219ddf14b57959e9a40be8b9">XASU_INVALID_ARGUMENT</a>, <a class="el" href="group__xasu__client__info.html#gga06fc87d81c62e9abb8790b6e5713c55bacf18aeeb8b7146572b4eadc9780ad4cb">XASU_INVALID_UNIQUE_ID</a>, <a class="el" href="group__xasu__common__defs.html#ga7417118b4fb39a720481891774b4672f">XASU_MODULE_RSA_ID</a>, <a class="el" href="group__xasu__client__info.html#ga6653ca717c2d2ed8399945c294af2f9f">XAsu_RegCallBackNGetUniqueId()</a>, <a class="el" href="group__xasu__common__defs.html#ga77e251196592abb4501a5f44e6904efc">XASU_RSA_PVT_CRT_DEC_CMD_ID</a>, <a class="el" href="group__xasu__common__defs.html#ga0e29ca164aa8fa3ac30a7b9102b615d9">XASU_UNIQUE_ID_MAX</a>, <a class="el" href="group__xasu__client__info.html#ga202195f871d91b50787438e2782be07f">XAsu_UpdateQueueBufferNSendIpi()</a>, and <a class="el" href="group__xasu__client__info.html#gae0f7072bf1eddf7ee11f1e5852570682">XAsu_ValidateClientParameters()</a>.</p>

</div>
</div>
<a class="anchor" id="ga8d99c3659893b5b77683b6bc3ee3abf8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">s32 XAsu_RsaDec </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_asu___client_params.html">XAsu_ClientParams</a> *&#160;</td>
          <td class="paramname"><em>ClientParamPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_x_asu___rsa_params.html">XAsu_RsaParams</a> *&#160;</td>
          <td class="paramname"><em>RsaClientParamPtr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function sends command to ASUFW to perform RSA decryption on the provided data by using specified private key. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ClientParamPtr</td><td>Pointer to the <a class="el" href="struct_x_asu___client_params.html" title="This structure contains client parameters information. ">XAsu_ClientParams</a> structure which holds the client input parameters. </td></tr>
    <tr><td class="paramname">RsaClientParamPtr</td><td>Pointer to <a class="el" href="struct_x_asu___rsa_params.html" title="This structure contains RSA params info. ">XAsu_RsaParams</a> structure which holds the parameters of RSA input arguments.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>XST_SUCCESS, if IPI request to ASU is sent successfully.</li>
<li>XASU_INVALID_ARGUMENT, if any argument is invalid.</li>
<li>XASU_QUEUE_FULL, if Queue buffer is full.</li>
<li>XST_FAILURE, if sending IPI request to ASU fails. </li>
</ul>
</dd></dl>
<p>Validatations of inputs.</p>
<p>Generate a unique ID and register the callback function.</p>
<p>Create command header.</p>
<p>Update request buffer and send an IPI request to ASU. </p>

<p>References <a class="el" href="struct_x_asu___rsa_params.html#ae603b7d80dd7b6135fb3b0bef96301c2">XAsu_RsaParams::InputDataAddr</a>, <a class="el" href="struct_x_asu___rsa_params.html#a5e18a0a1b467d66aa7570db8a1dadaef">XAsu_RsaParams::KeyCompAddr</a>, <a class="el" href="struct_x_asu___rsa_params.html#a5274ca6616c0d7e21c40dc4a168370d7">XAsu_RsaParams::KeySize</a>, <a class="el" href="struct_x_asu___rsa_params.html#a1d604912459e3e38cad1573f180997d7">XAsu_RsaParams::Len</a>, <a class="el" href="struct_x_asu___rsa_params.html#a4d1e5191bc0b3870ab1dc8a58ebc539f">XAsu_RsaParams::OutputDataAddr</a>, <a class="el" href="group__xasu__client__info.html#gad0de9c14ad7810516d9f71d5b18c44c1">XAsu_CreateHeader()</a>, <a class="el" href="group__xasu__client__info.html#gga06fc87d81c62e9abb8790b6e5713c55ba21f6a079219ddf14b57959e9a40be8b9">XASU_INVALID_ARGUMENT</a>, <a class="el" href="group__xasu__client__info.html#gga06fc87d81c62e9abb8790b6e5713c55bacf18aeeb8b7146572b4eadc9780ad4cb">XASU_INVALID_UNIQUE_ID</a>, <a class="el" href="group__xasu__common__defs.html#ga7417118b4fb39a720481891774b4672f">XASU_MODULE_RSA_ID</a>, <a class="el" href="group__xasu__client__info.html#ga6653ca717c2d2ed8399945c294af2f9f">XAsu_RegCallBackNGetUniqueId()</a>, <a class="el" href="group__xasu__common__defs.html#ga1e4840ada393e62fadbcb459dda61154">XASU_RSA_PVT_DEC_CMD_ID</a>, <a class="el" href="group__xasu__common__defs.html#ga0e29ca164aa8fa3ac30a7b9102b615d9">XASU_UNIQUE_ID_MAX</a>, <a class="el" href="group__xasu__client__info.html#ga202195f871d91b50787438e2782be07f">XAsu_UpdateQueueBufferNSendIpi()</a>, and <a class="el" href="group__xasu__client__info.html#gae0f7072bf1eddf7ee11f1e5852570682">XAsu_ValidateClientParameters()</a>.</p>

</div>
</div>
<a class="anchor" id="gaa85dcefff8e7e30465bf6a5e5d20e7fd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">s32 XAsu_RsaEnc </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_asu___client_params.html">XAsu_ClientParams</a> *&#160;</td>
          <td class="paramname"><em>ClientParamPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_x_asu___rsa_params.html">XAsu_RsaParams</a> *&#160;</td>
          <td class="paramname"><em>RsaClientParamPtr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function sends a command to ASUFW to perform RSA encryption on the provided data by using specified public key. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ClientParamPtr</td><td>Pointer to the <a class="el" href="struct_x_asu___client_params.html" title="This structure contains client parameters information. ">XAsu_ClientParams</a> structure which holds the client input parameters. </td></tr>
    <tr><td class="paramname">RsaClientParamPtr</td><td>Pointer to <a class="el" href="struct_x_asu___rsa_params.html" title="This structure contains RSA params info. ">XAsu_RsaParams</a> structure which holds the parameters of RSA input arguments.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>XST_SUCCESS, if IPI request to ASU is sent successfully.</li>
<li>XASU_INVALID_ARGUMENT, if any argument is invalid.</li>
<li>XASU_QUEUE_FULL, if Queue buffer is full.</li>
<li>XST_FAILURE, if sending IPI request to ASU fails. </li>
</ul>
</dd></dl>
<p>Validatations of inputs.</p>
<p>Generate a unique ID and register the callback function.</p>
<p>Create command header.</p>
<p>Update request buffer and send an IPI request to ASU. </p>

<p>References <a class="el" href="struct_x_asu___rsa_params.html#ae603b7d80dd7b6135fb3b0bef96301c2">XAsu_RsaParams::InputDataAddr</a>, <a class="el" href="struct_x_asu___rsa_params.html#a5e18a0a1b467d66aa7570db8a1dadaef">XAsu_RsaParams::KeyCompAddr</a>, <a class="el" href="struct_x_asu___rsa_params.html#a5274ca6616c0d7e21c40dc4a168370d7">XAsu_RsaParams::KeySize</a>, <a class="el" href="struct_x_asu___rsa_params.html#a1d604912459e3e38cad1573f180997d7">XAsu_RsaParams::Len</a>, <a class="el" href="struct_x_asu___rsa_params.html#a4d1e5191bc0b3870ab1dc8a58ebc539f">XAsu_RsaParams::OutputDataAddr</a>, <a class="el" href="group__xasu__client__info.html#gad0de9c14ad7810516d9f71d5b18c44c1">XAsu_CreateHeader()</a>, <a class="el" href="group__xasu__client__info.html#gga06fc87d81c62e9abb8790b6e5713c55ba21f6a079219ddf14b57959e9a40be8b9">XASU_INVALID_ARGUMENT</a>, <a class="el" href="group__xasu__client__info.html#gga06fc87d81c62e9abb8790b6e5713c55bacf18aeeb8b7146572b4eadc9780ad4cb">XASU_INVALID_UNIQUE_ID</a>, <a class="el" href="group__xasu__common__defs.html#ga7417118b4fb39a720481891774b4672f">XASU_MODULE_RSA_ID</a>, <a class="el" href="group__xasu__client__info.html#ga6653ca717c2d2ed8399945c294af2f9f">XAsu_RegCallBackNGetUniqueId()</a>, <a class="el" href="group__xasu__common__defs.html#gaaa08cb3f7d74f46248a0628c8608dd4e">XASU_RSA_PUB_ENC_CMD_ID</a>, <a class="el" href="group__xasu__common__defs.html#ga0e29ca164aa8fa3ac30a7b9102b615d9">XASU_UNIQUE_ID_MAX</a>, <a class="el" href="group__xasu__client__info.html#ga202195f871d91b50787438e2782be07f">XAsu_UpdateQueueBufferNSendIpi()</a>, and <a class="el" href="group__xasu__client__info.html#gae0f7072bf1eddf7ee11f1e5852570682">XAsu_ValidateClientParameters()</a>.</p>

</div>
</div>
<a class="anchor" id="ga12f65d36404feb30ce5b7f801e51eb81"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">s32 XAsu_RsaKat </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_asu___client_params.html">XAsu_ClientParams</a> *&#160;</td>
          <td class="paramname"><em>ClientParamPtr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function sends a command to ASUFW to perform RSA Known Answer Tests (KAT's). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ClientParamPtr</td><td>Pointer to the <a class="el" href="struct_x_asu___client_params.html" title="This structure contains client parameters information. ">XAsu_ClientParams</a> structure which holds the client input parameters.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>XST_SUCCESS, if IPI request to ASU is sent successfully.</li>
<li>XASU_INVALID_ARGUMENT, if any argument is invalid.</li>
<li>XASU_QUEUE_FULL, if Queue buffer is full.</li>
<li>XST_FAILURE, if sending IPI request to ASU fails. </li>
</ul>
</dd></dl>
<p>Validate input parameters.</p>
<p>Generate unique ID and register callback.</p>
<p>Create command header.</p>
<p>Update request buffer and send an IPI request to ASU. </p>

<p>References <a class="el" href="group__xasu__client__info.html#gad0de9c14ad7810516d9f71d5b18c44c1">XAsu_CreateHeader()</a>, <a class="el" href="group__xasu__client__info.html#gga06fc87d81c62e9abb8790b6e5713c55bacf18aeeb8b7146572b4eadc9780ad4cb">XASU_INVALID_UNIQUE_ID</a>, <a class="el" href="group__xasu__common__defs.html#ga7417118b4fb39a720481891774b4672f">XASU_MODULE_RSA_ID</a>, <a class="el" href="group__xasu__client__info.html#ga6653ca717c2d2ed8399945c294af2f9f">XAsu_RegCallBackNGetUniqueId()</a>, <a class="el" href="group__xasu__common__defs.html#ga4900a7bbdffc1a15e137cb0abff2219e">XASU_RSA_KAT_CMD_ID</a>, <a class="el" href="group__xasu__common__defs.html#ga0e29ca164aa8fa3ac30a7b9102b615d9">XASU_UNIQUE_ID_MAX</a>, <a class="el" href="group__xasu__client__info.html#ga202195f871d91b50787438e2782be07f">XAsu_UpdateQueueBufferNSendIpi()</a>, and <a class="el" href="group__xasu__client__info.html#gae0f7072bf1eddf7ee11f1e5852570682">XAsu_ValidateClientParameters()</a>.</p>

</div>
</div>
<a class="anchor" id="gaf459c9f8ebb4d33247bbd8b6ab591809"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">s32 XAsu_RsaOaepDec </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_asu___client_params.html">XAsu_ClientParams</a> *&#160;</td>
          <td class="paramname"><em>ClientParamPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_x_asu___rsa_oaep_padding_params.html">XAsu_RsaOaepPaddingParams</a> *&#160;</td>
          <td class="paramname"><em>RsaClientParamPtr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function sends a command to ASUFW to perform decoding using RSA OAEP padding algorithm of the provided message by using the specified key. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ClientParamPtr</td><td>Pointer to the <a class="el" href="struct_x_asu___client_params.html" title="This structure contains client parameters information. ">XAsu_ClientParams</a> structure which holds the client input parameters. </td></tr>
    <tr><td class="paramname">RsaClientParamPtr</td><td>Pointer to <a class="el" href="struct_x_asu___rsa_oaep_padding_params.html" title="This structure contains RSA OAEP padding params info. ">XAsu_RsaOaepPaddingParams</a> structure which holds the parameters of RSA input arguments.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>XST_SUCCESS, if IPI request to ASU is sent successfully.</li>
<li>XASU_INVALID_ARGUMENT, if any argument is invalid.</li>
<li>XASU_QUEUE_FULL, if Queue buffer is full.</li>
<li>XST_FAILURE, if sending IPI request to ASU fails. </li>
</ul>
</dd></dl>
<p>Validate input parameters.</p>
<p>Validatations of inputs.</p>
<p>Set the command ID based on selected SHA type.</p>
<p>Generate unique ID and register the callback.</p>
<p>Create command header.</p>
<p>Update request buffer and send an IPI request to ASU. </p>

<p>References <a class="el" href="struct_x_asu___rsa_params.html#a5274ca6616c0d7e21c40dc4a168370d7">XAsu_RsaParams::KeySize</a>, <a class="el" href="struct_x_asu___rsa_params.html#a1d604912459e3e38cad1573f180997d7">XAsu_RsaParams::Len</a>, <a class="el" href="struct_x_asu___rsa_oaep_padding_params.html#a9ea8551bd7f02de893a2bd8b633d42f0">XAsu_RsaOaepPaddingParams::OptionalLabelAddr</a>, <a class="el" href="struct_x_asu___rsa_params.html#a4d1e5191bc0b3870ab1dc8a58ebc539f">XAsu_RsaParams::OutputDataAddr</a>, <a class="el" href="struct_x_asu___rsa_oaep_padding_params.html#abaffccd03d581705cd3a9be40dc7ad8b">XAsu_RsaOaepPaddingParams::ShaMode</a>, <a class="el" href="struct_x_asu___rsa_oaep_padding_params.html#ae09922eadcfe378ccb74fbda3e11094d">XAsu_RsaOaepPaddingParams::ShaType</a>, <a class="el" href="group__xasu__client__info.html#gad0de9c14ad7810516d9f71d5b18c44c1">XAsu_CreateHeader()</a>, <a class="el" href="group__xasu__client__info.html#gga06fc87d81c62e9abb8790b6e5713c55ba21f6a079219ddf14b57959e9a40be8b9">XASU_INVALID_ARGUMENT</a>, <a class="el" href="group__xasu__client__info.html#gga06fc87d81c62e9abb8790b6e5713c55bacf18aeeb8b7146572b4eadc9780ad4cb">XASU_INVALID_UNIQUE_ID</a>, <a class="el" href="group__xasu__common__defs.html#ga7417118b4fb39a720481891774b4672f">XASU_MODULE_RSA_ID</a>, <a class="el" href="group__xasu__client__info.html#ga6653ca717c2d2ed8399945c294af2f9f">XAsu_RegCallBackNGetUniqueId()</a>, <a class="el" href="group__xasu__common__defs.html#gabfb400e0730a77cdf78539a1bb2aa40f">XASU_RSA_OAEP_DEC_SHA2_CMD_ID</a>, <a class="el" href="group__xasu__common__defs.html#gae2d0d4cdb898536ce9b81fb427fbe66f">XASU_RSA_OAEP_DEC_SHA3_CMD_ID</a>, <a class="el" href="struct_x_asu___rsa_oaep_padding_params.html#af7270c6b61dded1f64850612185a62e4">XAsu_RsaOaepPaddingParams::XAsu_RsaOpComp</a>, <a class="el" href="group__xasu__rsa__common__apis.html#gaad67e90120a3bdd3a8f4a98c3543eba4">XAsu_RsaValidateInputParams()</a>, <a class="el" href="group__xasu__common__defs.html#gaa7423cf1e6eb12f6d307fcdfadde635e">XASU_SHA2_TYPE</a>, <a class="el" href="group__xasu__common__defs.html#ga7af115dffedb0e4d090e6fa4561a0693">XASU_SHA3_TYPE</a>, <a class="el" href="group__xasu__common__defs.html#ga2ff7f0c006a8fd37526d549b4b02b511">XASU_SHA_MODE_SHA256</a>, <a class="el" href="group__xasu__common__defs.html#ga8abe96be07950583b1b86b109031db97">XASU_SHA_MODE_SHA384</a>, <a class="el" href="group__xasu__common__defs.html#gaf72009eaaf78e4306eba5db7264a6560">XASU_SHA_MODE_SHA512</a>, <a class="el" href="group__xasu__common__defs.html#gaacee72cf9c2d25a922f117c6da956f25">XASU_SHA_MODE_SHAKE256</a>, <a class="el" href="group__xasu__common__defs.html#ga0e29ca164aa8fa3ac30a7b9102b615d9">XASU_UNIQUE_ID_MAX</a>, <a class="el" href="group__xasu__client__info.html#ga202195f871d91b50787438e2782be07f">XAsu_UpdateQueueBufferNSendIpi()</a>, and <a class="el" href="group__xasu__client__info.html#gae0f7072bf1eddf7ee11f1e5852570682">XAsu_ValidateClientParameters()</a>.</p>

</div>
</div>
<a class="anchor" id="ga32fd59ce2f1c0da67ca9217a224a4626"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">s32 XAsu_RsaOaepEnc </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_asu___client_params.html">XAsu_ClientParams</a> *&#160;</td>
          <td class="paramname"><em>ClientParamPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_x_asu___rsa_oaep_padding_params.html">XAsu_RsaOaepPaddingParams</a> *&#160;</td>
          <td class="paramname"><em>RsaClientParamPtr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function sends command to ASUFW to perform encoding using RSA OAEP padding algorithm by using the specified RSA key. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ClientParamPtr</td><td>Pointer to the <a class="el" href="struct_x_asu___client_params.html" title="This structure contains client parameters information. ">XAsu_ClientParams</a> structure which holds the client input parameters. </td></tr>
    <tr><td class="paramname">RsaClientParamPtr</td><td>Pointer to <a class="el" href="struct_x_asu___rsa_oaep_padding_params.html" title="This structure contains RSA OAEP padding params info. ">XAsu_RsaOaepPaddingParams</a> structure which holds the parameters of RSA input arguments.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>XST_SUCCESS, if IPI request to ASU is sent successfully.</li>
<li>XASU_INVALID_ARGUMENT, if any argument is invalid.</li>
<li>XASU_QUEUE_FULL, if Queue buffer is full.</li>
<li>XST_FAILURE, if sending IPI request to ASU fails. </li>
</ul>
</dd></dl>
<p>Validate input parameters.</p>
<p>Validatations of inputs.</p>
<p>Set the command ID based on the selected SHA type.</p>
<p>Generate Unique ID and register the callback.</p>
<p>Create command header.</p>
<p>Update request buffer and send an IPI request to ASU. </p>

<p>References <a class="el" href="struct_x_asu___rsa_params.html#a5274ca6616c0d7e21c40dc4a168370d7">XAsu_RsaParams::KeySize</a>, <a class="el" href="struct_x_asu___rsa_params.html#a1d604912459e3e38cad1573f180997d7">XAsu_RsaParams::Len</a>, <a class="el" href="struct_x_asu___rsa_oaep_padding_params.html#a9ea8551bd7f02de893a2bd8b633d42f0">XAsu_RsaOaepPaddingParams::OptionalLabelAddr</a>, <a class="el" href="struct_x_asu___rsa_params.html#a4d1e5191bc0b3870ab1dc8a58ebc539f">XAsu_RsaParams::OutputDataAddr</a>, <a class="el" href="struct_x_asu___rsa_oaep_padding_params.html#abaffccd03d581705cd3a9be40dc7ad8b">XAsu_RsaOaepPaddingParams::ShaMode</a>, <a class="el" href="struct_x_asu___rsa_oaep_padding_params.html#ae09922eadcfe378ccb74fbda3e11094d">XAsu_RsaOaepPaddingParams::ShaType</a>, <a class="el" href="group__xasu__client__info.html#gad0de9c14ad7810516d9f71d5b18c44c1">XAsu_CreateHeader()</a>, <a class="el" href="group__xasu__client__info.html#gga06fc87d81c62e9abb8790b6e5713c55ba21f6a079219ddf14b57959e9a40be8b9">XASU_INVALID_ARGUMENT</a>, <a class="el" href="group__xasu__client__info.html#gga06fc87d81c62e9abb8790b6e5713c55bacf18aeeb8b7146572b4eadc9780ad4cb">XASU_INVALID_UNIQUE_ID</a>, <a class="el" href="group__xasu__common__defs.html#ga7417118b4fb39a720481891774b4672f">XASU_MODULE_RSA_ID</a>, <a class="el" href="group__xasu__client__info.html#ga6653ca717c2d2ed8399945c294af2f9f">XAsu_RegCallBackNGetUniqueId()</a>, <a class="el" href="group__xasu__common__defs.html#gae9e00748dcd61fab9b96a551cccd7463">XASU_RSA_OAEP_ENC_SHA2_CMD_ID</a>, <a class="el" href="group__xasu__common__defs.html#ga5a4a3265632fdf2a9397dcd01e34a45f">XASU_RSA_OAEP_ENC_SHA3_CMD_ID</a>, <a class="el" href="struct_x_asu___rsa_oaep_padding_params.html#af7270c6b61dded1f64850612185a62e4">XAsu_RsaOaepPaddingParams::XAsu_RsaOpComp</a>, <a class="el" href="group__xasu__rsa__common__apis.html#gaad67e90120a3bdd3a8f4a98c3543eba4">XAsu_RsaValidateInputParams()</a>, <a class="el" href="group__xasu__common__defs.html#gaa7423cf1e6eb12f6d307fcdfadde635e">XASU_SHA2_TYPE</a>, <a class="el" href="group__xasu__common__defs.html#ga7af115dffedb0e4d090e6fa4561a0693">XASU_SHA3_TYPE</a>, <a class="el" href="group__xasu__common__defs.html#ga2ff7f0c006a8fd37526d549b4b02b511">XASU_SHA_MODE_SHA256</a>, <a class="el" href="group__xasu__common__defs.html#ga8abe96be07950583b1b86b109031db97">XASU_SHA_MODE_SHA384</a>, <a class="el" href="group__xasu__common__defs.html#gaf72009eaaf78e4306eba5db7264a6560">XASU_SHA_MODE_SHA512</a>, <a class="el" href="group__xasu__common__defs.html#gaacee72cf9c2d25a922f117c6da956f25">XASU_SHA_MODE_SHAKE256</a>, <a class="el" href="group__xasu__common__defs.html#ga0e29ca164aa8fa3ac30a7b9102b615d9">XASU_UNIQUE_ID_MAX</a>, <a class="el" href="group__xasu__client__info.html#ga202195f871d91b50787438e2782be07f">XAsu_UpdateQueueBufferNSendIpi()</a>, and <a class="el" href="group__xasu__client__info.html#gae0f7072bf1eddf7ee11f1e5852570682">XAsu_ValidateClientParameters()</a>.</p>

</div>
</div>
<a class="anchor" id="gaceff65cb28ac22b56121a047dbb53aa9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">s32 XAsu_RsaPssSignGen </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_asu___client_params.html">XAsu_ClientParams</a> *&#160;</td>
          <td class="paramname"><em>ClientParamPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_x_asu___rsa_padding_params.html">XAsu_RsaPaddingParams</a> *&#160;</td>
          <td class="paramname"><em>RsaClientParamPtr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function sends a command to ASUFW to generate signature using RSA PSS padding on provided message by using the specified key. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ClientParamPtr</td><td>Pointer to the <a class="el" href="struct_x_asu___client_params.html" title="This structure contains client parameters information. ">XAsu_ClientParams</a> structure which holds the client input parameters. </td></tr>
    <tr><td class="paramname">RsaClientParamPtr</td><td>Pointer to <a class="el" href="struct_x_asu___rsa_padding_params.html" title="This structure contains RSA PSS padding params info. ">XAsu_RsaPaddingParams</a> structure which holds the parameters of RSA input arguments.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>XST_SUCCESS, if IPI request to ASU is sent successfully.</li>
<li>XASU_INVALID_ARGUMENT, if any argument is invalid.</li>
<li>XASU_QUEUE_FULL, if Queue buffer is full.</li>
<li>XST_FAILURE, if sending IPI request to ASU fails. </li>
</ul>
</dd></dl>
<p>Validate input parameters.</p>
<p>Validatations of inputs.</p>
<p>Generate unique ID and register the callback.</p>
<p>Create command header.</p>
<p>Update request buffer and send an IPI request to ASU. </p>

<p>References <a class="el" href="struct_x_asu___rsa_padding_params.html#afa1caad52128e98d9e481af3fc96626c">XAsu_RsaPaddingParams::InputDataType</a>, <a class="el" href="struct_x_asu___rsa_params.html#a5274ca6616c0d7e21c40dc4a168370d7">XAsu_RsaParams::KeySize</a>, <a class="el" href="struct_x_asu___rsa_params.html#a1d604912459e3e38cad1573f180997d7">XAsu_RsaParams::Len</a>, <a class="el" href="struct_x_asu___rsa_params.html#a4d1e5191bc0b3870ab1dc8a58ebc539f">XAsu_RsaParams::OutputDataAddr</a>, <a class="el" href="struct_x_asu___rsa_padding_params.html#a1c007736fb6e25858b9dcfaf2f952369">XAsu_RsaPaddingParams::ShaMode</a>, <a class="el" href="struct_x_asu___rsa_padding_params.html#a4b962e1d08fb88965e9dcb6805769c34">XAsu_RsaPaddingParams::ShaType</a>, <a class="el" href="group__xasu__client__info.html#gad0de9c14ad7810516d9f71d5b18c44c1">XAsu_CreateHeader()</a>, <a class="el" href="group__xasu__client__info.html#gga06fc87d81c62e9abb8790b6e5713c55ba21f6a079219ddf14b57959e9a40be8b9">XASU_INVALID_ARGUMENT</a>, <a class="el" href="group__xasu__client__info.html#gga06fc87d81c62e9abb8790b6e5713c55bacf18aeeb8b7146572b4eadc9780ad4cb">XASU_INVALID_UNIQUE_ID</a>, <a class="el" href="group__xasu__common__defs.html#ga7417118b4fb39a720481891774b4672f">XASU_MODULE_RSA_ID</a>, <a class="el" href="group__xasu__client__info.html#ga6653ca717c2d2ed8399945c294af2f9f">XAsu_RegCallBackNGetUniqueId()</a>, <a class="el" href="group__xasu__common__defs.html#ga49f5d87d707175ade5c12f09f2062ba0">XASU_RSA_HASHED_INPUT_DATA</a>, <a class="el" href="group__xasu__common__defs.html#ga0326c60f03f41427f495cae1b16bfaea">XASU_RSA_PSS_SIGN_GEN_SHA2_CMD_ID</a>, <a class="el" href="group__xasu__common__defs.html#gafe66a48f7bc8613f847b950a4527d90d">XASU_RSA_PSS_SIGN_GEN_SHA3_CMD_ID</a>, <a class="el" href="struct_x_asu___rsa_padding_params.html#a001cec06d90f3e3b8eca87c24a1c7ea7">XAsu_RsaPaddingParams::XAsu_RsaOpComp</a>, <a class="el" href="group__xasu__rsa__common__apis.html#gaad67e90120a3bdd3a8f4a98c3543eba4">XAsu_RsaValidateInputParams()</a>, <a class="el" href="group__xasu__common__defs.html#gaa7423cf1e6eb12f6d307fcdfadde635e">XASU_SHA2_TYPE</a>, <a class="el" href="group__xasu__common__defs.html#ga7af115dffedb0e4d090e6fa4561a0693">XASU_SHA3_TYPE</a>, <a class="el" href="group__xasu__common__defs.html#gab4bda5abb6cea66699d85952c0ea0c68">XASU_SHA_256_HASH_LEN</a>, <a class="el" href="group__xasu__common__defs.html#ga03b4e128752ecabe8915b7c8a8a4d73f">XASU_SHA_384_HASH_LEN</a>, <a class="el" href="group__xasu__common__defs.html#ga2f1dce4b9423d6e10cd1914f67a70178">XASU_SHA_512_HASH_LEN</a>, <a class="el" href="group__xasu__common__defs.html#ga2ff7f0c006a8fd37526d549b4b02b511">XASU_SHA_MODE_SHA256</a>, <a class="el" href="group__xasu__common__defs.html#ga8abe96be07950583b1b86b109031db97">XASU_SHA_MODE_SHA384</a>, <a class="el" href="group__xasu__common__defs.html#gaf72009eaaf78e4306eba5db7264a6560">XASU_SHA_MODE_SHA512</a>, <a class="el" href="group__xasu__common__defs.html#gaacee72cf9c2d25a922f117c6da956f25">XASU_SHA_MODE_SHAKE256</a>, <a class="el" href="group__xasu__common__defs.html#ga48a92eac5a3ea3621a0f3a5e3aefb2be">XASU_SHAKE_256_HASH_LEN</a>, <a class="el" href="group__xasu__common__defs.html#ga76b2a99254d75adbf6f36f2cfbb39964">XASU_SHAKE_256_MAX_HASH_LEN</a>, <a class="el" href="group__xasu__common__defs.html#ga0e29ca164aa8fa3ac30a7b9102b615d9">XASU_UNIQUE_ID_MAX</a>, <a class="el" href="group__xasu__client__info.html#ga202195f871d91b50787438e2782be07f">XAsu_UpdateQueueBufferNSendIpi()</a>, and <a class="el" href="group__xasu__client__info.html#gae0f7072bf1eddf7ee11f1e5852570682">XAsu_ValidateClientParameters()</a>.</p>

</div>
</div>
<a class="anchor" id="ga3a33eba68b96c49e0dcb8ca6abfd7b89"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">s32 XAsu_RsaPssSignVer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_asu___client_params.html">XAsu_ClientParams</a> *&#160;</td>
          <td class="paramname"><em>ClientParamPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_x_asu___rsa_padding_params.html">XAsu_RsaPaddingParams</a> *&#160;</td>
          <td class="paramname"><em>RsaClientParamPtr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function sends request to ASUFW to verify the specified signature by using RSA PSS padding by using the provided key. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ClientParamPtr</td><td>Pointer to the <a class="el" href="struct_x_asu___client_params.html" title="This structure contains client parameters information. ">XAsu_ClientParams</a> structure which holds the client input parameters. </td></tr>
    <tr><td class="paramname">RsaClientParamPtr</td><td>Pointer to <a class="el" href="struct_x_asu___rsa_padding_params.html" title="This structure contains RSA PSS padding params info. ">XAsu_RsaPaddingParams</a> structure which holds the parameters of RSA input arguments.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>XST_SUCCESS, if IPI request to ASU is sent successfully.</li>
<li>XASU_INVALID_ARGUMENT, if any argument is invalid.</li>
<li>XASU_QUEUE_FULL, if Queue buffer is full.</li>
<li>XST_FAILURE, if sending IPI request to ASU fails. </li>
</ul>
</dd></dl>
<p>Validate input parameters.</p>
<p>Validatations of inputs.</p>
<p>Select the command ID based on SHA type.</p>
<p>Generate unique ID and register the callback.</p>
<p>Create command header.</p>
<p>Update request buffer and send an IPI request to ASU. </p>

<p>References <a class="el" href="struct_x_asu___rsa_padding_params.html#afa1caad52128e98d9e481af3fc96626c">XAsu_RsaPaddingParams::InputDataType</a>, <a class="el" href="struct_x_asu___rsa_params.html#a5274ca6616c0d7e21c40dc4a168370d7">XAsu_RsaParams::KeySize</a>, <a class="el" href="struct_x_asu___rsa_params.html#a1d604912459e3e38cad1573f180997d7">XAsu_RsaParams::Len</a>, <a class="el" href="struct_x_asu___rsa_padding_params.html#a1c007736fb6e25858b9dcfaf2f952369">XAsu_RsaPaddingParams::ShaMode</a>, <a class="el" href="struct_x_asu___rsa_padding_params.html#a4b962e1d08fb88965e9dcb6805769c34">XAsu_RsaPaddingParams::ShaType</a>, <a class="el" href="struct_x_asu___rsa_padding_params.html#adcdbd318ffffe4d16dd53a354d64b510">XAsu_RsaPaddingParams::SignatureDataAddr</a>, <a class="el" href="struct_x_asu___rsa_padding_params.html#a835f488b95ca9c9ae8cc9ae3e8732c5d">XAsu_RsaPaddingParams::SignatureLen</a>, <a class="el" href="group__xasu__client__info.html#gad0de9c14ad7810516d9f71d5b18c44c1">XAsu_CreateHeader()</a>, <a class="el" href="group__xasu__client__info.html#gga06fc87d81c62e9abb8790b6e5713c55ba21f6a079219ddf14b57959e9a40be8b9">XASU_INVALID_ARGUMENT</a>, <a class="el" href="group__xasu__client__info.html#gga06fc87d81c62e9abb8790b6e5713c55bacf18aeeb8b7146572b4eadc9780ad4cb">XASU_INVALID_UNIQUE_ID</a>, <a class="el" href="group__xasu__common__defs.html#ga7417118b4fb39a720481891774b4672f">XASU_MODULE_RSA_ID</a>, <a class="el" href="group__xasu__client__info.html#ga6653ca717c2d2ed8399945c294af2f9f">XAsu_RegCallBackNGetUniqueId()</a>, <a class="el" href="group__xasu__common__defs.html#ga49f5d87d707175ade5c12f09f2062ba0">XASU_RSA_HASHED_INPUT_DATA</a>, <a class="el" href="group__xasu__common__defs.html#ga63ed6f5157f1f8058157a323d86de0a3">XASU_RSA_PSS_SIGN_VER_SHA2_CMD_ID</a>, <a class="el" href="group__xasu__common__defs.html#gabdaa92632a989db821db9bd361430159">XASU_RSA_PSS_SIGN_VER_SHA3_CMD_ID</a>, <a class="el" href="struct_x_asu___rsa_padding_params.html#a001cec06d90f3e3b8eca87c24a1c7ea7">XAsu_RsaPaddingParams::XAsu_RsaOpComp</a>, <a class="el" href="group__xasu__rsa__common__apis.html#gaad67e90120a3bdd3a8f4a98c3543eba4">XAsu_RsaValidateInputParams()</a>, <a class="el" href="group__xasu__common__defs.html#gaa7423cf1e6eb12f6d307fcdfadde635e">XASU_SHA2_TYPE</a>, <a class="el" href="group__xasu__common__defs.html#ga7af115dffedb0e4d090e6fa4561a0693">XASU_SHA3_TYPE</a>, <a class="el" href="group__xasu__common__defs.html#gab4bda5abb6cea66699d85952c0ea0c68">XASU_SHA_256_HASH_LEN</a>, <a class="el" href="group__xasu__common__defs.html#ga03b4e128752ecabe8915b7c8a8a4d73f">XASU_SHA_384_HASH_LEN</a>, <a class="el" href="group__xasu__common__defs.html#ga2f1dce4b9423d6e10cd1914f67a70178">XASU_SHA_512_HASH_LEN</a>, <a class="el" href="group__xasu__common__defs.html#ga2ff7f0c006a8fd37526d549b4b02b511">XASU_SHA_MODE_SHA256</a>, <a class="el" href="group__xasu__common__defs.html#ga8abe96be07950583b1b86b109031db97">XASU_SHA_MODE_SHA384</a>, <a class="el" href="group__xasu__common__defs.html#gaf72009eaaf78e4306eba5db7264a6560">XASU_SHA_MODE_SHA512</a>, <a class="el" href="group__xasu__common__defs.html#gaacee72cf9c2d25a922f117c6da956f25">XASU_SHA_MODE_SHAKE256</a>, <a class="el" href="group__xasu__common__defs.html#ga48a92eac5a3ea3621a0f3a5e3aefb2be">XASU_SHAKE_256_HASH_LEN</a>, <a class="el" href="group__xasu__common__defs.html#ga76b2a99254d75adbf6f36f2cfbb39964">XASU_SHAKE_256_MAX_HASH_LEN</a>, <a class="el" href="group__xasu__common__defs.html#ga0e29ca164aa8fa3ac30a7b9102b615d9">XASU_UNIQUE_ID_MAX</a>, <a class="el" href="group__xasu__client__info.html#ga202195f871d91b50787438e2782be07f">XAsu_UpdateQueueBufferNSendIpi()</a>, and <a class="el" href="group__xasu__client__info.html#gae0f7072bf1eddf7ee11f1e5852570682">XAsu_ValidateClientParameters()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
	<p class="footer">&copy; Copyright 2015-2022 Xilinx, Inc. All Rights Reserved.</p>
	<p class="footer">&copy; Copyright 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved.</p>
</div>
</body>
</html>
